package com.kalvin.kvf.modules.dep.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.kalvin.kvf.modules.dep.entity.Dps;
import com.kalvin.kvf.modules.dep.mapper.DpsMapper;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 * @since 2021-03-07 13:13:08
 */
@Service
public class DpsServiceImpl extends ServiceImpl<DpsMapper, Dps> implements DpsService {

    @Override
    public Page<Dps> listDpsPage(Dps dps) {
        Page<Dps> page = new Page<>(dps.getCurrent(), dps.getSize());
        List<Dps> dpss = baseMapper.selectDpsList(dps, page);
        return page.setRecords(dpss);
    }

}
